<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <title>商品管理</title>
    <%@include file="/WEB-INF/views/commons/commons.jsp" %>
    <script type="text/javascript" src="/static/js/system/productCategory.js"></script>

</head>
<body>
<body class="easyui-layout">
<div  data-options="region:'west',split:true" style="width:500px;">
    <table id="to_myGrid"></table>
</div>
</div>
<div data-options="region:'center'" style="background:#eee;">
    <table id="myGrid"></table>
    <div id="tb">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" onclick="add()">新增</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" onclick="edit()">编辑</a>
        <a href="#" class="easyui-linkbutton"  data-options="iconCls:'icon-remove',plain:true" onclick="changeState()">删除</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" onclick="reload()">刷新</a>
    </div>
    <div id="form_btn">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" onclick="save()">保存</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" onclick="cancel()">取消</a>
    </div>
    <div id="myDialog">
        <form id="myForm" method="post">
            <input type="hidden"  name="id" id="productCategoryId"/>
            <table align="center" style="margin:15px">
                <tr>
                    <td>一级分类:</td>
                    <td><input name="parent.id" class="easyui-combobox"
                               data-options="url:'/productCategory/list',textField:'name',valueField:'id',panelHeight:'auto'"></td>
                </tr>
                <tr>
                    <td>二级分类名称:</td>
                    <td><input name="name" class="easyui-textbox" ></td>
                <tr>
                <tr>
                    <td>序号:</td>
                    <td><input name="ordinal" class="easyui-textbox" ></td>
                <tr>
            </table>
        </form>
    </div>
</div>
</body>
</html>
